/***************************************************************
*  Copyright (c) 2007 by GroupMe! Team (www.groupme.net)
*  All rights reserved
*
*  This file is part of the GroupMe! Project. You can utilize
*  software of the GroupMe! project under the terms of the 
*  GNU Lesser General Public License as published by the
*  Free Software Foundation in version 2.1.
* 
*  The GNU Lesser General Public License can be found at:
*  http://www.gnu.org/licenses/lgpl.html
*
*  This copyright notice MUST APPEAR in all copies of the file!
***************************************************************/
package net.groupme.model;

import java.net.URI;

import net.groupme.exceptions.UpdateFailedException;
import net.groupme.model.dao.StyleDAO;

/**
 * 
 * This class provides...
 * This interface defines...
 * 
 * @author Mischa Frank, <a
 *         href="mailto:code@planetfrank.net">code@planetfrank.net</a>
 * 
 * @version 1.0, created on 24.05.2007 
 *
 */
public class StyleImpl implements Style {

private StyleDAO styleDAO = null;
	
	public StyleImpl(StyleDAO styleDAO){
		this.styleDAO = styleDAO;
	}
	
	/* (non-Javadoc)
	 * @see net.groupme.model.Identifiable#getId()
	 */
	public String getId() {
		return this.styleDAO.getId();
	}

	/* (non-Javadoc)
	 * @see net.groupme.model.Identifiable#getDescription()
	 */
	public String getDescription() {
		return this.styleDAO.getDescription();
	}

	/* (non-Javadoc)
	 * @see net.groupme.model.Identifiable#getLabel()
	 */
	public String getLabel() {
		return this.styleDAO.getLabel();
	}

	/* (non-Javadoc)
	 * @see net.groupme.model.Identifiable#getURI()
	 */
	public URI getURI() {
		return this.styleDAO.getURI();
	}

	/* (non-Javadoc)
	 * @see net.groupme.model.Identifiable#setDescription(java.lang.String)
	 */
	public void setDescription(String description) throws UpdateFailedException {
		this.styleDAO.setDescription(description);
	}

	/* (non-Javadoc)
	 * @see net.groupme.model.Identifiable#setLabel(java.lang.String)
	 */
	public void setLabel(String label) {
		this.styleDAO.setLabel(label);
	}

	/* (non-Javadoc)
	 * @see net.groupme.model.Style#getBackgroundImage()
	 */
	public String getBackgroundImage() {
		return this.styleDAO.getBackgroundImage();
	}

	/* (non-Javadoc)
	 * @see net.groupme.model.Style#getBackgrundColor()
	 */
	public String getBackgrundColor() {
		return this.styleDAO.getBackgrundColor();
	}

	/* (non-Javadoc)
	 * @see net.groupme.model.Style#setBackgroundColor(java.lang.String)
	 */
	public void setBackgroundColor(String color) throws UpdateFailedException {
		this.styleDAO.setBackgroundColor(color);
	}

	/* (non-Javadoc)
	 * @see net.groupme.model.Style#setBackgroundImgae(java.lang.String)
	 */
	public void setBackgroundImage(String image) throws UpdateFailedException {
		this.styleDAO.setBackgroundImage(image);		
	}

	/* (non-Javadoc)
	 * @see net.groupme.model.Style#getName()
	 */
	public String getName() {
		return this.styleDAO.getName();
	}

	/* (non-Javadoc)
	 * @see net.groupme.model.Style#setName(java.lang.String)
	 */
	public void setName(String name) throws UpdateFailedException {
		this.styleDAO.setName(name);		
	}

}
